package zuo;

import java.util.Scanner;

public class Circle extends Shape {
    @Override
    public void perimeter() {//面积
        this.setZ(10);
        double c=this.getZ()*2*3.14;
        System.out.println("圆的周长："+c);
    }
    public void area(){

        this.setR(10);
        double b=this.getR()*3.14*this.getR();
        System.out.println("圆的面积："+b);
    };

    @Override
    public void SetColor() {//周长
        this.setColor("黑色");
        System.out.println("颜色："+this.getColor());

    }
}
